import request from '@/utils/request'

// 查询红包记录列表
export function listPacket_record(query) {
  return request({
    url: '/game/packet_record/list',
    method: 'get',
    params: query
  })
}

// 查询红包记录详细
export function getPacket_record(packetId) {
  return request({
    url: '/game/packet_record/' + packetId,
    method: 'get'
  })
}

// 新增红包记录
export function addPacket_record(data) {
  return request({
    url: '/game/packet_record',
    method: 'post',
    data: data
  })
}

// 修改红包记录
export function updatePacket_record(data) {
  return request({
    url: '/game/packet_record',
    method: 'put',
    data: data
  })
}

// 删除红包记录
export function delPacket_record(packetId) {
  return request({
    url: '/game/packet_record/' + packetId,
    method: 'delete'
  })
}
